package cn.signalpha.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类实体类
 *
 * @author suguangjun
 */
@Data
@TableName("shop_goods_category")
@ApiModel(value = "GoodsCategory对象", description = "商品分类")
public class GoodsCategory implements Serializable {

    private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
  	private Long id;

	@ApiModelProperty(value = "上级id")
	private Long parentId;

	@ApiModelProperty(value = "状态：0隐藏 1显示")
	private Integer status;

	@ApiModelProperty(value = "等级")
	private Integer level;

	@ApiModelProperty(value = "名称")
	private String name;

	@ApiModelProperty(value = "图标")
	private String icon;

	@ApiModelProperty(value = "路径")
	private String path;

	@ApiModelProperty(value = "简介")
	private String brief;

    @ApiModelProperty(value = "排序值")
    private Integer sort;

	@ApiModelProperty(value = "创建时间")
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
